using System;
using System.Web.UI;
using SouthernLand.Common;

namespace SouthernLand.WebMaster.Controls
{
    public partial class Title : UserControl
    {
        public string _resourceKey = "";

        public string _text = "";

        public string ResourceKey
        {
            get { return _resourceKey; }
            set { _resourceKey = value; }
        }

        public string Text
        {
            get { return _text; }
            set { _text = value; }
        }


        protected void Page_Load(object sender, EventArgs e)
        {
            lblTitle.Text = ResourceKey.Length > 1 ? ResourceManager.GetString(ResourceKey) : Text;
        }
    }
}